package com.gem.day08.factory;

//import static com.gem.day08.factory.SimpleFactory.*;

import org.junit.Test;

public class CoffeeTest {

	@Test
	public void testCoffee() {
		/*Coffee latte = getCoffee(LATTE);
		System.out.println(latte.getName());*/

		/*CoffeeFactory chinaCoffeeFactory = new ChinaCoffeeFactory();
		Coffee[] chinaCoffees = chinaCoffeeFactory.createCoffees();
		System.out.println("中国咖啡工厂的产品有: ");
		for (Coffee c : chinaCoffees) {
			System.out.println(c.getName());
		}*/

		AbstractDrinksFactory chinaDrinksFactory = new ChinaDrinksFactory();
		Coffeee[] coffeees = chinaDrinksFactory.createCoffeee();
		Tea tea = chinaDrinksFactory.createTea();
		Sodas sodas = chinaDrinksFactory.createSodas();
		System.out.println(tea.getName());
	}
}
